<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{:isset($info['id'])?'编辑':'新增'}人才信息</h2>
    </div>
    <form action="{:U('Operate/savetech')}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">姓名<span class="check-tips">（姓名）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$info.name|default=''}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">电话<span class="check-tips">（电话）</span></label>
            <div class="controls">
                <input type="number" class="text input-medium" name="mobile" value="{$info.mobile|default=''}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">所在城市<span class="check-tips">（所在城市）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="address" value="{$info.address|default=''}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">职称<span class="check-tips">（职称）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="divide" value="{$info.divide|default=''}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">工作年限<span class="check-tips">（工作年限）</span></label>
            <div class="controls">
                <select name="exprience" readonly="readonly">
                    <option value="0">请选择工作年限</option>
                    <option value="1" <eq name="info.exprience" value="1"> selected </eq> >一年以内</option>
                    <option value="2" <eq name="info.exprience" value="2"> selected </eq> >1-3年</option>
                    <option value="3" <eq name="info.exprience" value="3"> selected </eq> >3-5年</option>
                    <option value="4" <eq name="info.exprience" value="4"> selected </eq> >5-10年</option>
                    <option value="5" <eq name="info.exprience" value="5"> selected </eq> >10年以上</option>
                </select>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">毕业院校<span class="check-tips">（毕业院校）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="school" value="{$info.school|default=''}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">个人简介<span class="check-tips">（详细说明）</span></label>
            <div class="controls">
                <textarea name="persondesc" class="form-textarea" cols="60" rows="3">{$info.persondesc|default=''}</textarea>
            </div>
        </div>
        <div class="form-item">
            <input type="hidden" name="id" value="{$info.id|default=''}">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        Think.setValue("pid", {$info.pid|default = 0});
        Think.setValue("hide", {$info.hide|default = 0});
        Think.setValue("is_dev", {$info.is_dev|default = 0});
        //导航高亮
        highlight_subnav("{:U('Operate/tech')}");
    </script>
</block>